home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / programm / MM2_DEV / S / MYUTIL / LOAD.M < prev    next >
Encoding:
Text File  |  1991-02-28  |  711 b   |  29 lines

  1. MODULE Load;
  2.  
  3. FROM InOut IMPORT ReadString, WriteString, WriteLn;
  4. FROM StorBase IMPORT FullStorBaseAccess;
  5. FROM ShellMsg IMPORT StdPaths, ShellPath;
  6. FROM PathEnv IMPORT HomePath;
  7. FROM Loader IMPORT LoadModule, LoaderResults;
  8. FROM Strings IMPORT String;
  9.  
  10. VAR modName, errMsg: String;
  11. VAR result: LoaderResults;
  12.  
  13. BEGIN
  14.   HomePath:= ShellPath;
  15.   IF FullStorBaseAccess () THEN
  16.     WriteString ('Full access')
  17.   ELSE
  18.     WriteString ('Not full access')
  19.   END;
  20.   LOOP
  21.     WriteLn;
  22.     WriteString ('Load which module? ');
  23.     ReadString (modName);
  24.     IF modName[0] = '' THEN EXIT END;
  25.     LoadModule (modName, StdPaths, modName, errMsg, result);
  26.     WriteString (errMsg);
  27.   END
  28. END Load.
  29.